from selenium.webdriver.common.by import By


class AccountListLocators:
    CONTEXT_BT_LOCATOR = (By.CLASS_NAME, "ContextMenuButton")
    LOGOUT_BT_LOCATOR = (By.CSS_SELECTOR, ".ContextMenu .ContextMenu-button:nth-child(1)")
    LOGOUT_WITH_FLUSH_BT_LOCATOR = (By.CSS_SELECTOR, ".ContextMenu .ContextMenu-button:nth-child(2)")


class AuthorizationLocators:
    LOGIN = (By.NAME, "login")
    TOGGLE = (By.CLASS_NAME, "AuthLoginInputToggle-wrapper")
    ERROR = (By.ID, "field:input-login:hint")
    SUBMIT = (By.ID, "passp:sign-in")


class AuthenticationLocators:
    CHOSEN_USER = (By.CLASS_NAME, "AuthPasswordForm-currentAccount")
    PASSWORD = (By.NAME, "passwd")
    ERROR = (By.ID, "field:input-login:hint")
    SUBMIT = (By.ID, "passp:sign-in")
